<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="HNUST/../../user/css/pintuer.css">
<link rel="stylesheet" href="HNUST/../../user/css/admin.css">
<script src="HNUST/../../user/js/jquery.js"></script>
<script src="HNUST/../../user/js/pintuer.js"></script>
 <link rel="stylesheet" type="text/css" href="HNUST/../../dist/css/wangEditor.min.css">
<!--引入jquery和wangEditor.js-->   <!--注意：javascript必须放在body最后，否则可能会出现问题-->
<script src="HNUST/../../dist/js/lib/jquery-1.10.2.min.js"></script>
<script src="HNUST/../../dist/js/wangEditor.min.js"></script>
<style type="text/css">
        #editor-trigger {
            height: 400px;
            /*max-height: 500px;*/
        }
        .container {
            width: 100%;
            margin: 0 auto;
            position: relative;
        }
    </style>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="messagesuccess">  
    <input type="hidden" class="input" name="message_id" value="${messages.message_id }" />
      <div class="form-group">
        <div class="label">
          <label>用户：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="${messages.message_name }" name="message_name" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div>                  
    
       <div class="form-group">
        <div class="label">
          <label>留言：</label>
        </div>
        <div class="field">
          <textarea id="textarea1" style="height:300px;max-height:400px;" name="message_board">
    <p>${messages.message_board }</p>
</textarea>
          <div class="tips"></div>
        </div>
      </div> 


<!--这里引用jquery和wangEditor.js-->
<script type="text/javascript">
    // 获取元素
    var textarea = document.getElementById('textarea1');
    // 生成编辑器
    var editor = new wangEditor(textarea);
    editor.create();
</script>    
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>

</body></html>